﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

using Read.Models;
using Read.Services;
using Read.Utility;


namespace Read.Web.Api
{
    /// <summary>
    /// 用户操作API
    /// </summary>
    public class MemberController : ApiBaseApiController
    {
		/// <summary>
		/// 用户注册(Swagger API文档示例)
		/// </summary>
		[Route("Api/Member/Login")]
        [HttpPost]
        public ResultData<String> Login(QueryParams model)
        {
            var res = new ResultData<String>()
            {
                Data = "",
                Message = "登录成功"
            };
            return res;
        }

        /// <summary>
        /// 用户登录(Swagger API文档示例)
        /// </summary>
        [Route("Api/Member/Register")]
        [HttpPost]
        public ResultData<String> Register()
        {
			var res = new ResultData<String>()
			{
				Data = "Register",
                Message = "注册成功"
			};
			return res;
        }
    }
}
